package com.xx.springboot.controller;


import com.baomidou.mybatisplus.extension.api.ApiController;
import com.xx.springboot.entity.ResponseBo;
import com.xx.springboot.entity.Role;
import com.xx.springboot.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaoxiunique
 * @since 2018-11-03
 */
@RestController
@RequestMapping("/role")
public class RoleController extends ApiController {

    @Autowired
    private IRoleService roleService;

    @RequestMapping("test")
    public ResponseBo test(Long roleId) {
        Role roleList = roleService.getRoleListPermission(roleId);
        return ResponseBo.ok(roleList);
    }

}

